'use strict';

define(function(require,exports,module){
	var React = require('react');
	
	module.exports = React.createClass({displayName: "exports",
		render:function(){
			var option = this.props.data.map(function(item){
				return React.createElement("option", {ref: item.key, value: item.key}, item.value)
			});
			
			return (
				React.createElement("form", {className: this.props.formClass, style: {margin:'5px 0'}}, 
					React.createElement("select", {value: this.props.selectValue, onChange: this.props.handleChange, className: "form-control input"}, 
					React.createElement("option", {value: ""}, this.props.default_value), 
					option
					)
				)
			);
		}
	});

});